//
//  Conversion.h
//  NumberConverter
//
//  Created by Kyle Sherman on 8/14/10.
//  Copyright (c) 2010 __MyCompanyName__. All rights reserved.
//

#include <string>
#include <sstream>

using namespace std;

class Conversion
{
private:
    string inputString;
    string convertedString;
    stringstream conversionStream;
    int binary;
    int decimal;
    
public:
    Conversion() {};
    void setInputString(string);
    string getConvertedString();
    
    void dectobin(bool);
    void dectohex(bool);
    void dectooct(bool);
    
    void bintodec(bool);
    void bintohex(bool);
    void bintooct(bool);
    
    void hextodec(bool);
    void hextobin(bool);
    void hextooct(bool);
    
    void octtodec(bool);
    void octtobin(bool);
    void octtohex(bool);
};